import  Login from '../pages/login/index'
import Home from '../pages/home/index'

import Content from '../pages/home/content-management/index'
import Publish from '../pages/home/publish-article/index'
import Data from '../pages/home/Data-Overview/index'

import loginstore from '../store/login.js'
import homestore from '../store/Home.js'
import channelstore from '../store/Channel.js'
import articlestore from '../store/Articles.js'

export default [
    {
        path: '/*',
        element: <Login loginstore={ loginstore }/>,
    },
    {
        path: '/home',
        element: <Home homestore={ homestore } />,
        redirect: '/',
        children: [
            {
                path: 'content',
                element: <Content channelstore={channelstore} articlestore={ articlestore }/>,
            },
            {
                path: 'publish',
                element: <Publish channelstore={channelstore} articlestore={articlestore} />,
            },
            {
                path: 'data',
                element: <Data />,
            },
        ]

    }

]
